/*
 *The code is written by NaLi, All rights reserved.
 */
package com.nali.dal.statement.function.formatter.date;

import java.util.Date;

import org.springframework.stereotype.Component;

import com.nali.dal.statement.function.SingleArgumentDataHandler;

/**
 * @author gavin 
 * Created on 2011-4-9
 */
@Component
public class SecondToDate extends SingleArgumentDataHandler<Long, Date>{
	private TimeUnit longTimeUnit = TimeUnit.SECOND;

	@Override
	public Date handle(Long obj) {
		return longTimeUnit.getDate(obj);
	}
}

